<%= header %>
<%= boomerangScript %>
<!--
responseStart happening before navigationStart:
https://bugs.chromium.org/p/chromium/issues/detail?id=127644
-->
<script src="../../vendor/angular/angular.js"></script>
<script src="../../vendor/angular-resource/angular-resource.js"></script>
<script src="../../vendor/angular-route/angular-route.js"></script>
<script src="support/app.js"></script>
<script>
/*global angular*/
document.addEventListener("DOMContentLoaded", function() {
	angular.bootstrap(document, ["app"]);
});
</script>
<div ng-view></div>
<script src="107-hard-browser-bugs.js" type="text/javascript"></script>
<script>
// Patch getPerformance to return our buggy data instead
BOOMR.getPerformance = function() {
	var data = BOOMR_test.getPerformanceCopy();

	if (!data) {
		return data;
	}

	// change requestStart and responseStart to be before navigationStart
	data.timing.requestStart = data.timing.navigationStart - 1000;
	data.timing.responseStart = data.timing.navigationStart - 1000;

	return data;
};

window.angular_imgs = [500];

BOOMR_test.init({
	testAfterOnBeacon: true,
	Angular: {
		enabled: true
	},
	instrument_xhr: true,
	autorun: false
});
</script>
<%= footer %>
